//
//  ZGSCartoonDetailFootView.m
//  MapleLeaf
//
//  Created by WangZe on 15/11/28.
//  Copyright © 2015年 AntennaBabyTeam. All rights reserved.
//

#import "ZGSCartoonDetailFootView.h"
#define WIDTH [UIScreen mainScreen].bounds.size.width
#define HEIGHT [UIScreen mainScreen].bounds.size.height
@implementation ZGSCartoonDetailFootView
- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.allListButton = [UIButton buttonWithType:UIButtonTypeSystem];
        [self.allListButton setTitle:@"查看全部章节" forState:UIControlStateNormal];
        self.allListButton.titleLabel.textColor = [UIColor colorWithRed:0.886f green:0.882f blue:0.882f alpha:1.00f];
        self.allListButton.layer.borderWidth = 2;
        self.allListButton.layer.borderColor = [[UIColor colorWithRed:0.886f green:0.882f blue:0.882f alpha:1.00f] CGColor];
        self.allListButton.layer.cornerRadius = 3;
        [self addSubview:self.allListButton];
    }
    return self;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    
    self.allListButton.frame = CGRectMake((WIDTH / 5 - 10)/ 5 + 5, 0, WIDTH - 2 * ((WIDTH / 5 - 10)/ 5 + 5), HEIGHT / 18);
}

@end
